package Redis;

/**
 * @author yuanx
 * @date 2023/8/25 10:30
 */

public class redisTest {
    public static void main(String[] args) {
//        Jedis jedis = new Jedis("192.168.1.47",6379);
//        jedis.auth("Ht123");
//
//        System.out.println(jedis.ping());
//        jedis.set("name","zhangsan");
//        String name = jedis.get("name");
//        System.out.println(name);
        try {
            int i=1;
            System.out.println("i = " + i/0);

        }catch (Exception e){
            e.printStackTrace();
            throw new RuntimeException("打印失败:" + e.getMessage().toString());
//            throw  new RuntimeException("aa");

        }
    }
}
